package org.yuanqiframework.yuanqi.web.auth.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.yuanqiframework.yuanqi.web.auth.AuthContext;

import javax.servlet.http.HttpServletRequest;
import java.util.Set;

@Slf4j
@Component
public class AuthDefaultImpl implements IAuth {

    @Override
    public Set<String> provideRoles(HttpServletRequest request) {
        return AuthContext.getRoles();
    }
}
